<html><head><title>SaveJSON</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">SaveJSON()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>SaveJSON</b></font>(#JSON, FileName$ [, Flags])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Save the given JSON data to a file. The file will be encoded in 
UTF-8 (without a leading byte-order mark). 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#JSON</i></td>
<td width="90%"> 
The JSON to save. 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
If set to <font color="#924B72">#PB_JSON_PrettyPrint</font>, the saved data will 
contain additional newline and whitespace for better readability. The extra 
whitespace is not significant to the JSON format. The output will have the 
same meaning to a JSON reader with or without this flag. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns non-zero if the file was saved successfully. If there is an error 
while saving the file, the result is zero. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="composejson.html">ComposeJSON()</a>, <a href="exportjson.html">ExportJSON()</a>, <a href="exportjsonsize.html">ExportJSONSize()</a>, <a href="loadjson.html">LoadJSON()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=resizejsonelements.html>ResizeJSONElements()</a> - <a href="index.html">Json Index</a> - <a href="setjsonarray.html">SetJSONArray()</a> -><br><br>

</body></html>